package com.cti.ftpservice.job;

import java.util.Date;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.FtpService;

@Component("ftpDownloadFileSaveToDBJob")
public class FtpDownloadFileSaveToDBJob {
	
	private static Log log = LogFactory.getLog(FtpDownloadFileSaveToDBJob.class);
	@Resource
	private FtpService ftpService;
	
	public void  doWork() {
		log.info("Ftp服务器下载文件保存到数据库开始"+new Date().toString());
		ftpService.saveFtpDownloadFileToDB();
		log.info("Ftp服务器下载文件保存到数据库完成"+new Date().toString());
	}
}
